<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
websocket测试界面
</body>
<script type="text/javascript">
	var websocketPath = "localhost:8080/sshbase";
	if ('WebSocket' in window) {
	  websocket = new WebSocket("ws://"+websocketPath+"/ws/notifymessage.ws");
	} else if ('MozWebSocket' in window) {
	  websocket = new MozWebSocket("ws://"+websocketPath+"/ws/notifymessage.ws");
	} else {
	  websocket = new SockJS("ws://"+websocketPath+"/ws/notifymessage.ws");
	}
	websocket.onopen = function (evnt) {
	};
	websocket.onmessage = function (evnt) {
	  console.log(evnt);
	};
	websocket.onerror = function (evnt) {
	};
	websocket.onclose = function (evnt) {
	}
</script>
</html>